<?php
/**
 * 横幅验证器模型
 * @Author: 聂哥
 * @Date: 2022-11-26 14:51:23
*/

namespace app\admin\validate;

use think\Validate;

class Quoted extends Validate
{
    protected $rule =   [
        'title'  => 'require',   
        'banner_img' => 'require'	
    ];
    
    protected $message  =   [
        'title.require' => '横幅广告标题不能为空',
		'banner_img.require' => '横幅广告图片不能为空'
    ];
	
	protected $scene = [
        'add'  =>  ['title','banner_img'],
    ];
    
}